package com.cn.Object;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author he_ls
 * @since 2024/6/26 18:00
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Person {
    String name;
    Integer age;
    String sex;
    String address;
    Date birthday;
    List<String> toyList;



    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Person对象 {" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                ", toyList=" + toyList +
                '}';
    }
}
